package com.zhentao.controller;

import com.zhentao.admin.pojo.AdUserPageDto;
import com.zhentao.common.dtos.ResponseResult;
import com.zhentao.service.AdUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api("后台 员工管理 ")
@RestController
@RequestMapping("/manage/admin")
public class AdUserController {


    @Resource
    private AdUserService adUserService;
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "body", dataType = "AdUserPageDto", name = "dto", value = "", required = true)
    })
    @ApiOperation(value = "查看所有的管理员账号", notes = "", httpMethod = "POST")
    @PostMapping("/selectOnManageUser")
    public ResponseResult selectOnManageUser(@RequestBody AdUserPageDto dto){
        return adUserService.selectOnManageUser(dto);
    }
}
